package com.aidem.onecartoon.common.constant;

/**
 * 返回值封装
 *
 * @author aidem
 * @date 2020/12/2 0002 17:08
 */
public enum ResultEnum {

    SUCCESS("200", "操作成功"),
    ERROR("500", "操作失败"),
    WAIT("1111", "正在处理结果");

    private String code;

    private String msg;

    ResultEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return Integer.parseInt(code);
    }

    public String getMsg() {
        return msg;
    }
}
